# -*- codeing =utf-8 -*-
# @Time : 2022/9/15 上午9:26
# @Author :WXJ
# @File : 4.3.py
# @Software: PyCharm

f=open("b.txt","w")
user=input("请输入您要写入的内容：")
f.write(user)
print(f)
f.close()